package com.example.hello.client.Modal;

import com.vaadin.shared.AbstractComponentState;
import com.vaadin.shared.Connector;

import java.util.ArrayList;
import java.util.List;

public class BootstrapModalState extends AbstractComponentState {
    
    private List<Connector> widgets = new ArrayList<Connector>();

    private boolean animation;
    private String backdrop;
    private boolean closeVisible;
    private boolean dynamicSafe;
    private boolean keyboard;

    private boolean showFlag;

    public List<Connector> getWidgets() {
        return widgets;
    }

    public void setWidgets(List<Connector> widgets) {
        this.widgets = widgets;
    }

    public void addWidget(Connector widget) {
        widgets.add(widget);
    }

    public void addWidget(Connector widget, int index) {
        widgets.add(index, widget);
    }

    public void removeWidget(Connector widget) {
        widgets.remove(widget);
    }

    public boolean isAnimation() {
        return animation;
    }

    public void setAnimation(boolean animation) {
        this.animation = animation;
    }

    public String getBackdrop() {
        return backdrop;
    }

    public void setBackdrop(String backdrop) {
        this.backdrop = backdrop;
    }

    public boolean isCloseVisible() {
        return closeVisible;
    }

    public void setCloseVisible(boolean closeVisible) {
        this.closeVisible = closeVisible;
    }

    public boolean isDynamicSafe() {
        return dynamicSafe;
    }

    public void setDynamicSafe(boolean dynamicSafe) {
        this.dynamicSafe = dynamicSafe;
    }

    public boolean isKeyboard() {
        return keyboard;
    }

    public void setKeyboard(boolean keyboard) {
        this.keyboard = keyboard;
    }

    public boolean isShowFlag() {
        return showFlag;
    }

    public void setShowFlag(boolean showFlag) {
        this.showFlag = showFlag;
    }

}
